package com.ruoyi.logistic.service.impl;

import com.ruoyi.logistic.domain.NetworkCompare;
import com.ruoyi.logistic.mapper.NetworkCompareMapper;
import com.ruoyi.logistic.service.INetworkCompareService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NetworkCompareServiceImpl implements INetworkCompareService {
    @Autowired
    private NetworkCompareMapper networkCompareMapper;
    @Override
    public List<NetworkCompare> selectAll() {
        return networkCompareMapper.selectAll();
    }

    @Override
    public NetworkCompare findById(Integer id) {
        return networkCompareMapper.findById(id);
    }

    @Override
    public Boolean insert(NetworkCompare networkCompare) {
        return networkCompareMapper.insert(networkCompare);
    }

    @Override
    public Boolean update(NetworkCompare networkCompare) {
        return networkCompareMapper.update(networkCompare);
    }

    @Override
    public Boolean deleteById(Integer id) {
        return networkCompareMapper.deleteById(id);
    }
}
